<template>
  <div class="vx-small-title">
    <div class="plain-title" :class="isPlain ? '' : 'right-title'">
      <slot></slot>
      <i class="stand"></i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'vx-small-title',
  props: {
    isPlain: {
      default: false,
      type: Boolean,
    },
  },
};
</script>
<style lang="scss">
.vx-small-title {
  .plain-title {
    position: relative;
    height: 22px;
    font-size: $s16;
    font-weight: 600;

    color: $color-text-main;
    line-height: 22px;
    p {
      text-align: left;
      position: relative;
      i {
        position: absolute;
        right: 10px;
        transform: rotate(90deg);
        line-height: 30px;
        cursor: pointer;
      }
    }
    .icon-position {
      position: absolute;
      right: 10px;
    }
    &.right-title {
      position: relative;
      margin: 0 auto;
      line-height: 33px;
      font-size: $s24;
      color: $color-primary;
      padding-bottom: 10px;
    }
  }
}
</style>
